projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd374b8
)
css: Set meaningful fallback color
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 6 Sep 2016 10:16:40 +0000
(06:16 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 6 Sep 2016 10:38:50 +0000
(06:38 -0400)
This code was passing out-of-range values into
gdk_cairo_set_source_rgb, which cannot really make
anything better.
gtk/gtkcssimagefallback.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssimagefallback.c
b/gtk/gtkcssimagefallback.c
index 620dd94862c40c8c27f8c1f271f655fa588a0df4..ad9965acb61ccd54dd406e7c9f8006aea93a9ade 100644
(file)
--- a/
gtk/gtkcssimagefallback.c
+++ b/
gtk/gtkcssimagefallback.c
@@
-74,7
+74,7
@@
gtk_css_image_fallback_draw (GtkCssImage *image,
if (fallback->color)
gdk_cairo_set_source_rgba (cr, _gtk_css_rgba_value_get_rgba (fallback->color));
else
- cairo_set_source_rgb (cr, 1
, 0, 9
);
+ cairo_set_source_rgb (cr, 1
.0, 0.0, 0.0
);
cairo_rectangle (cr, 0, 0, width, height);
cairo_fill (cr);